package com.blog.wu.myblog.dao;

import com.blog.wu.myblog.base.CrudDao;
import com.blog.wu.myblog.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 用户信息dao
 *
 * @Date 2018/10/23 上午9:15
 * @Author wuyanshen
 */
public interface UserInfoMapper extends CrudDao<UserInfo> {

    /**
     * 用户登录
     *
     * @param user
     * @return com.blog.wu.myblog.entity.UserInfo
     * @Date 2018/10/12 下午12:56
     * @Author wuyanshen
     */
    UserInfo isLogin(UserInfo user);

    int insertUserRole(UserInfo userInfo);

    int deleteUserRole(UserInfo userInfo);

    List<String> selectUserRole(UserInfo userInfo);



}